﻿using Freebase4net.Interfaces;
using Freebase4net.Operators.Bases;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Freebase4net.Operators
{
    public class LessThenOperator : OperatorBase, IOperator
    {
        public LessThenOperator(string value)
            : base(value)
        {

        }

        public string CreateJson(string key)
        {
            if (Value is string)
            {
                return string.Format("\"{0}<\":\"{1}\"", key, Value);
            }
            else
            {
                throw new OperatorArgumentException("string");
            }
        }
    }
}
